package com.esaheki.flashcards.ui;

import java.awt.EventQueue;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		/** Definições para o programa rodar adequadamente no Mac OS X */
		try {  
            System.setProperty("apple.laf.useScreenMenuBar", "true");  
            System.setProperty("com.apple.mrj.application.apple.menu.about.name", "FlashCards");  
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());  
        }  
  
        catch(ClassNotFoundException e) {  
            System.out.println("ClassNotFoundException: " + e.getMessage());  
        }  
  
        catch(InstantiationException e) {  
            System.out.println("InstantiationException: " + e.getMessage());  
        }  
  
        catch(IllegalAccessException e) {  
            System.out.println("IllegalAccessException: " + e.getMessage());  
        }  
  
        catch(UnsupportedLookAndFeelException e) {  
            System.out.println("UnsupportedLookAndFeelException: " + e.getMessage());  
        }
        
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainPanel().setVisible(true);
            }
        });

	}

}
